use std::env;
use log::{info,error};

mod lib;
use lib::types::{project_type::ProjectType, vue_to_war::VueToWarType};

fn main() {
    let args = env::args();
    if args.len() != 2 {
        println!("使用方式：ml build");
    }
    for (index, arg) in args.enumerate() {
        if index == 1 && arg != "build" {
            println!("使用方式：ml build");
        }
    }

    
    match VueToWarType::new().build()  {
        Ok(msg) => {
            info!("{}", msg);
        }
        Err(err) => {
            error!("{:?}", err);
        }
    }
}
